<div class="gru-topic frame">
  <p class="gru-topic style title">
    <%= @topic.name %>
    <% if @topic.user_id == current_user.id %>
      <span class="gru-topic style action"><%= link_to (t :edit, :scope => [:helpers, :navigation]), edit_project_topic_path(params[:project_id], @topic) %></span>
    <% end %>
  </p>
  <% if @topic.created_at != @topic.updated_at%>
    <p class="gru-topic style notice">
      <%= t :changed, :scope => [:helpers, :messages, :topic] %><%= l(@topic.updated_at, :format => :short) %>
    </p>
  <% end %>
  <p class="gru-topic style">
    <%= @topic.description %>
  </p>
  <p class="gru-topic style notice">
    <%= t :created, :scope => [:helpers, :messages, :topic] %><%= @topic.user.alias %><%= t :at, :scope => [:helpers, :messages, :topic] %><%= l(@topic.created_at, :format => :short) %>
  </p>
</div>

<div class="gru-topics frame">
  <br/>
  <b><%= t :comments, :scope => [:helpers, :headlines, :topic] %></b>
  <span class="gru-topic style action2">
    <%= link_to (t :answer, :scope => [:helpers, :navigation, :topic]), new_project_topic_reply_path(params[:project_id], @topic) %>
  </span>
  <hr/>
</div>

<% if @topic.replies.empty? %>
  <div class="gru-topics frame">
    <%= t :no_comments, :scope => [:helpers, :messages, :topic] %>
  </div>
<% else %>
  <%= render :partial => "replies/reply", :collection => @topic.replies.order("created_at desc") %>
<% end %>